package com.baike;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;


/**
 * 路由配置   （注册到服务中心的）
 * http://localhost:1001/student/list  能请求到数据
 * http://zuul.java1234.com:3001/microservice-student/student/list  也螚请求到数据
 * 域名+端口+服务名称+请求地址                                路由基本配置OK
 * 
 * 这种方式暴露服务名称，不太安全，需要配置一种措施
 * @author John
 *
 */
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@EnableZuulProxy
public class ZuulApplication_3001 {

	public static void main(String[] args) {
		SpringApplication.run(ZuulApplication_3001.class, args);
	}
}
